import request from '@/utils/request'
// 获取所有函数
export function getPermissionList() {
  return request({
    url: '/sys/permission'
  })
}
// 获取权限点
export function addPermission(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
// 根据ID获取权限详情
export function getPermissioDetail(id) {
  return request({
    url: '/sys/permission/' + id,
    method: 'get'
  })
}
// 根据ID更显权限点详情
export function updatePermissio(data) {
  return request({
    url: '/sys/permission/' + data.id,
    method: 'put',
    data
  })
}
// 根据ID删除
export function DeletePermissio(id) {
  return request({
    url: '/sys/permission/' + id,
    method: 'delete'
  })
}
